package com.adopters;

import java.sql.*;
 import java.util.*;
 public class ConnectionManager { 
	 
	 static Connection con; 
	 static String url;

	 public static Connection getConnection() {
		 try { 
			 String url = "jdbc:oracle:thin:@localhost:1521:xe"; 
			 Class.forName("oracle.jdbc.driver.OracleDriver");
			 try {

				 con = DriverManager.getConnection(url,"vamshi","vamshi"); 
				 
			 } catch (SQLException ex) { 
				 ex.printStackTrace(); 
			 }
		} catch(ClassNotFoundException e) { 
			e.printStackTrace();
		}
		return con; 
	}
}
